<?php
$letters = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q');
$answers = explode("$$$", $answers);
$inputCheck = $multiple ? 'checkbox' : 'radio'; 
e("<ul>\n");
for ($i = 0; $i < count($answers); $i++) {
    $id = $i+1;
    printf("    <li><input type=\"{$inputCheck}\" id=\"{$name}{$id}\" name=\"{$name}\" /><label for=\"{$name}{$id}\">%s %s</label></li>\n", $letters[$i], $answers[$i]);
}
e("</ul>\n");